package com.scc.mapper;

import com.scc.pojo.EmpOperationLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface EmpOperationLogMapper {
    //新增员工日志
    @Insert("insert into empoperationlog (name, account, operationTime, operationType) value " +
            "(#{name},#{account},#{operationTime},#{operationType})")
    void insertEmpOperationLog(EmpOperationLog empOperationLog);

    //管理员对员工操作日志的获取和查询
    List<EmpOperationLog> selectEmpOperationLogMsg(@Param("name") String name, @Param("account") String account, @Param("operationType") String operationType, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime);

    //管理员对员工日志的删除操作
    void deleteEmpOperationLogsMsg(@Param("ids") List<Integer> ids);
}
